package org.yzh.rbac.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.yzh.rbac.model.entity.UserDO;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    List<UserDO> find(UserDO entity);

    UserDO getByUsername(String username);

    UserDO get(Integer id);

    int insert(UserDO entity);

    int update(UserDO entity);

    int delete(Integer id);
}